﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace EscPrinterHelperV1d0.Service
{
    /// <summary>
    /// 传输数据接口
    /// </summary>
    public interface ITransferDataToPrinter
    {
        /// <summary>
        /// 发送文本
        /// </summary>
        bool SendText(string content,bool isTraditionalOfSource,bool isTraditionalOfPrinter, TcpClient printerTcpClient);
        /// <summary>
        /// 发送图片
        /// </summary>
        bool SendImage(Bitmap bitmap, TcpClient printerTcpClient);
        /// <summary>
        /// 发送字节数组
        /// </summary>
        bool SendBytes(byte[] bytes, TcpClient printerTcpClient);
    }
}
